package com.lb.design.pattern.mutipattern;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: liubin
 * Date: 2017-12-29
 * Time: 下午 4:10
 */
public class Student {

    //定义10个学生的数量
    public static void main(String[] args) {
        int minStudentNum = 10;
        for(int i = 0;i< minStudentNum;i++){
            Teacher teacher = Teacher.getInstance();
            System.out.print("第"+i+"个学生问好");
            teacher.teacherName();
        }
    }


}
